<template>
	<view class="uni-column">
        <web-view :webview-styles="webviewStyles" :src="chatSrc"></web-view>

	</view>
</template>
<script>

	export default {
		data() {
			return {}
		},
		props: {
			chatSrc: {
				type: String,
				default: ""
			}
		},
		components: {},
		onLoad: function() {
			let wv;
			// #ifdef APP-PLUS
			var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
			setTimeout(function() {
				wv = currentWebview.children()[0]
				wv.setStyle({top:150,height:300})
			}, 1000); //如果是页面初始化调用时，需要延时一下
			// #endif
		},
		methods: {}
	}
</script>

<style scoped>
	.uni-column {
		display: flex;
		flex-direction: column;
	}

	.content {

		display: flex;
		flex: 1;
		/* margin-bottom: 100upx; */
	}

	.foot {
		position: fixed;
		width: 100%;
		/* height: 90upx;
		min-height: 90upx; */
		height: auto;
		left: 0upx;
		bottom: 0;
		overflow: hidden;
	}
</style>
